package me.ywd.starter.config;

import me.ywd.starter.command.DbCountRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.repository.CrudRepository;

import java.util.Collection;

/**
 * @Author Ye_Wenda
 * @Date 8/28/2017
 */
@Configuration
public class DbCountAutoConfiguration {

    @Bean
    public DbCountRunner dbCountRunner(Collection<CrudRepository> repositories) {
        return new DbCountRunner(repositories);
    }
}
